package chatserver;
import java.net.Socket;


public class Chatter {
	private Socket socket;
	private String nick;
        private ChatRoom currentChatRoom;
	public Chatter(Socket socket, String nick)
	{
		this.socket=socket;
		this.nick=nick;
                this.currentChatRoom=null;
        }
        public void setChatRoom(ChatRoom chatRoom)
        {
            this.currentChatRoom=chatRoom;
        }
        public ChatRoom getChatRoom()
        {
            return currentChatRoom;
        }
	public Socket getSocket() {
		return socket;
	}
	public void setSocket(Socket sokcet) {
		this.socket = sokcet;
	}
	public String getNick() {
		return nick;
	}
	public void setNick(String nick) {
		this.nick = nick;
	}
}